package com.pojo.parent;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.utility.util.CustomLocalDateDeserializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class BaseDto implements Serializable {

    private static final long serialVersionUID = 87836619711231139L;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 创建人
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long createUser;

    /**
     * 创建时间
     */
    @JsonSerialize(using = CustomLocalDateDeserializer.class)
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long updateUser;

    /**
     * 更新时间
     */
    @JsonSerialize(using = CustomLocalDateDeserializer.class)
    private LocalDateTime updateTime;

    /**
     * 是否删除0未删除1删除
     */
    private String isDelete;
}
